<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<input type="text" id="tel" placeholder="请输入手机号">
<button type="button" id="submit">确定</button>
</body>
</html>
<script>
        $('#submit').click(function (){
            var tel=$('#tel').val();
            $.ajax({
                url:"{:url('/changeTelData')}",
                data:{tel:tel},
                dataType:'json',
                type:'post',
                success:function (){

                }
            })
        })

</script>